Skip to content

Web/HTTP/Reference/Headers/Content-Security-Policy のタイポを修正 #27405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Content-Security-Policy: <policy-directive>; <policy-directive>
`style-src-elem` および `style-src-attr` の[代替](#代替)となります。

- {{CSP("style-src-elem")}}
- : スタイルシートの {{HTMLElement("style")}} および {{HTMLElement("link")}} 要素に `rel="stylesheet"` がついたものののための有効なソースを指定します
- : スタイルシートの {{HTMLElement("style")}} および {{HTMLElement("link")}} 要素に `rel="stylesheet"` がついたもののための有効なソースを指定します
- {{CSP("style-src-attr")}}
- : 個々の DOM 要素に適用されるインラインスタイルの有効なソースを指定します。
- {{CSP("worker-src")}}
Expand Down Expand Up @@ -115,7 +115,7 @@ Content-Security-Policy: <policy-directive>; <policy-directive>
- {{CSP("base-uri")}}
- : 文書の {{HTMLElement("base")}} 要素で使用される URL を制限します。
- {{CSP("sandbox")}}
- : {{HTMLElement("iframe")}} と [`sandbox`](/ja/docs/Web/HTML/Reference/Elements/iframe#sandbox) 属性に類似した、リクエストされあtリソースに対してサンドボックスを有効にします
- : {{HTMLElement("iframe")}} と [`sandbox`](/ja/docs/Web/HTML/Reference/Elements/iframe#sandbox) 属性に類似した、リクエストされたリソースに対してサンドボックスを有効にします

### ナビゲーションディレクティブ

Expand All @@ -133,7 +133,7 @@ Content-Security-Policy: <policy-directive>; <policy-directive>
- {{CSP("report-to")}}

- : CSP 違反情報を送信するための報告エンドポイントまたはエンドポイントグループを識別するトークンをブラウザーに提供します。
トークンが表すエンドポイントは、他にも {{HTTPHeader("Reporting-Endpoints")}} などの HTTP ヘッダーでで指定されている場合があります
トークンが表すエンドポイントは、他にも {{HTTPHeader("Reporting-Endpoints")}} などの HTTP ヘッダーで指定されている場合があります

> [!WARNING]
> このディレクティブは [`report-uri`](/ja/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/report-uri) を置き換えることを意図しています。 `report-to` に対応したブラウザーでは、 `report-uri` ディレクティブは無視されます。
Expand Down Expand Up @@ -283,7 +283,7 @@ Content-Security-Policy: <policy-directive>; <policy-directive>
既定では、 CSP に `default-src` または `script-src` ディレクティブが含まれている場合、インライン JavaScript の実行は許可されません。これには以下が含まれます。

- インラインの `<script>` タグ
- インタ印のイベントハンドラー属性
- インラインのイベントハンドラー属性
- `javascript:` URL

同様に、 CSP で `default-src` または `style-src` ディレクティブを記載している場合、インライン CSS は読み込まれません。
Expand Down